export default {
  state: {
    defaultIndex: 0,//楼盘照片轮播 索引
    photoContent: [],//轮播图数据
    imageName: '',//楼盘照片名字
    imageType: 0,//楼盘照片类型,
    houseArea: '',  //快捷找房 与二手房下拉 区域
    housePayMin: '',  //快捷找房 与二手房下拉 价格 小
    housePayMax: '',  //快捷找房 与二手房下拉 价格 大
    houseType: '',  //快捷找房 与二手房下拉 房源类型
    houseDevelopers:'',//开发商
    houseHuxing:''//户型
  },
  getters: {
    getImageType(state) {
      return state.imageType
    },
    getIndex(state) {
      return state.defaultIndex
    },
    getData(state) {
      return state.photoContent
    },
    getName(state) {
      return state.imageName
    },
    getHouseArea(state){
      return state.houseArea
    },
    getHousePayMin(state){
      return state.housePayMin
    },
    getHousePayMax(state){
      return state.housePayMax
    },
    getHouseType(state){
      return state.houseType
    },
    getHouseDevelopers(state){
      return state.houseDevelopers
    },
    getHouseHuxing(state){
      return state.houseHuxing
    }
  },
  mutations: {
    //清除快捷找房数据
    setClearHouse(state){
      state.houseArea = '';
      state.housePayMin = '';
      state.housePayMax = '';
      state.houseType = '';
      state.houseDevelopers = '';
      state.houseHuxing = '';
    },
    setData(state, data) {
      state.photoContent = data;
    },
    setName(state, name) {
      state.imageName = name;
    },
    setIndex(state, index) {
      state.defaultIndex = index;
    },
    setImageType(state, type) {
      state.imageType = type;
    },
    setHouseArea(state,area){
      state.houseArea = area;
    },
    setHousePayMin(state,pay){
      state.housePayMin = pay;
    },
    setHousePayMax(state,pay){
      state.housePayMax = pay;
    },
    setHouseType(state,type){
      state.houseType = type;
    },
    setHouseDevelopers(state,type){
      state.houseDevelopers = type;
    },
    setHouseHuxing(state,type){
      state.houseHuxing = type;
    }
  },
  actions: {}
}
